/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2022-03-19     desktop       the first version
 */

#include <all_code.h>

/*  导入log工具 */
#define DBG_TAG "pin_device.c"
#define DBG_LVL DBG_LOG
#include <rtdbg.h>

void pin_device_init(void)
{
    /* 设置这个pin 为推挽输出模式 ,初始电平设置为 低电平 */
    rt_pin_mode(Relay_PIN, PIN_MODE_OUTPUT);
    rt_pin_write(Relay_PIN, PIN_HIGH);
}
